package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户评价咨询师业务对象 p_evaluate
 *
 * @author ruoyi
 * @date 2022-07-22
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("用户评价咨询师业务对象")
public class PEvaluateBo extends BaseEntity {

    /**
     *
     */
    @ApiModelProperty(value = "", required = true)
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    /**
     * 评价内容
     */
    @ApiModelProperty(value = "评价内容", required = true)
    @NotBlank(message = "评价内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String evaluateMsg;

    /**
     * 评价标签
     */
    @ApiModelProperty(value = "评价标签", required = true)
    private String evaluateTag;

    /**
     * 咨询师id
     */
    @ApiModelProperty(value = "咨询师id", required = true)
    @NotNull(message = "咨询师", groups = { AddGroup.class, EditGroup.class })
    private Long adviserId;

    /**
     * 打分
     */
    @ApiModelProperty(value = "打分", required = true)
    @NotNull(message = "分数不能为空")
    private Double score;

    /**
     * 评价状态 好评 中评 差评
     */
    @ApiModelProperty(value = "评价状态", required = true)
    private String evaluateType;

    /**
     * 评价标题
     */
    @ApiModelProperty(value = "评价标题", required = true)
    private String evaluateTitle;


}
